<template>
  <div class="myinof">
    <h2>基本信息</h2>
    <div class="conter">
      <h2>
        <img src="@/assets/img/logo2.png" alt="" />
      </h2>
      <p>昵称：<input type="text" v-model="name"/></p>
      <p>密码：<input type="text" v-model="password"/></p>
      <el-button :plain="true" @click="open2">保存修改</el-button>
    </div>
  </div>
</template>

<style lang="scss">
.el-main {
  padding-top: 0;
}
.myinof {
  width: 100%;
  height: 100%;
  background-color: #fff;
  overflow: hidden;
  >h2 {
    margin: 20px;
  }
  .conter {
    width: 250px;
    margin: 0 auto;
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    h2 {
      margin-bottom: 30px;
      img {
        width: 120px;
        height: 120px;
      }
    }
    p {
      margin-bottom: 20px;
      input {
        width: 200px;
        height: 40px;
        padding-left: 10px;
      }
    }
    button {
      background-color: #4165d7;
      color: #fff;
    }
  }
}
</style>

<script>
export default {
  data() {
    return {
      name:"管理员",
      password:" "
    }
  },
  methods: {
    open2() {
      this.$message({
        showClose: true,
        message: "修改成功！",
        type: "success",
      });
    },
  },
};
</script>
